package com.qdsg.modulesihealsdk.entity;

import com.qdsg.modulesihealsdk.utils.StrUtils;
import com.siheal.entitys.measure.HemoglobinEntity;

/**
 * @Description
 * @Author WuJianFeng
 * @Date 2022/12/9 17:42
 */
public class HbResultEntity extends BaseMeasureEntity {
    private HemoglobinEntity hbEntity;

    public HbResultEntity(HemoglobinEntity hbEntity){
        this.hbEntity = hbEntity;
    }
    public HemoglobinEntity getHbEntity() {
        return hbEntity;
    }

    public void setHbEntity(HemoglobinEntity hbEntity) {
        this.hbEntity = hbEntity;
    }

    @Override
    public String getDetectResult(){

        if (hbEntity == null){
            return "";
        }
        //血红蛋白|HCT
        return StrUtils.checkResultEmpty(hbEntity.getHB())+"|"+StrUtils.checkResultEmpty(hbEntity.getHCT());
    }
}
